package orbitPrototype.gui;

import orbitPrototype.Util;
import orbitPrototype.loaders.XMLLoader;

import org.w3c.dom.Element;

public class GUITab extends GUIXMLContainer
{
	private String _tabTitle = "";
	private GUITabControl _parentTabController = null;
	
	public GUITab(int x, int y, int width, int height, Element xmlElement, GUITabControl parentTabController, GUIWindow parentWindow)
	{
		super(x, y, width, height, xmlElement, parentWindow);
		
		_tabTitle = XMLLoader.getElementValue("tabTitle", xmlElement);
		_parentTabController = parentTabController;
		
		Util.output("Initiated tab with w: " + width + ", h: " + height);
	}
	
	public void activate()
	{
		_parentTabController.activateTab(this);
	}
	
	public String getTabTitle()
	{
		return _tabTitle;
	}

}
